package ai.people.platform.archives.service;

import ai.people.netmon.framework.domain.archives.entity.ArchivesImages;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author zhenglin
 * @since 2022-04-12
 */
public interface ArchivesImagesService extends IService<ArchivesImages> {
    /**
     * 保存img
     *
     * @param file 文件
     * @return {@link String}
     * @throws IOException ioexception
     */
    String saveImg(MultipartFile file) throws IOException;

    /**
     * 获取img
     *
     * @param id id
     * @return {@link String}
     */
    String getImg(Long id);
}
